/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package mnstudent.datatranferobject;

import java.util.Objects;

/**
 *
 * @author lee
 */
public class MajorDTO {
   
    //<editor-fold defaultstate="collapsed" desc=" Attributes " >
    private String m_MajorID;
    private String m_NameOfMajor;
    private String m_FacultyID;
    //</editor-fold>

    //<editor-fold defaultstate="collapsed" desc=" Properties ">
    public String getMajorID(){ return this.m_MajorID;};
    
    public void setMajorID(String strMajorID){ this.m_MajorID = strMajorID;};
    
    public String getNameOfMajor() { return this.m_NameOfMajor;};
    
    public void setNameOfMajor(String strNameOfMajor){ this.m_NameOfMajor = strNameOfMajor;};
    
    public String getFacultyID() {
        return m_FacultyID;
    }

    public void setFacultyID(String m_FacultyID) {
        this.m_FacultyID = m_FacultyID;
    }
    
    //</editor-fold>
    
    //<editor-fold defaultstate="collapsed" desc=" Method ">
    public MajorDTO(){
        
    }
    
    public MajorDTO(String strMajorID, String strNameOfMajor){
        this.m_MajorID = strMajorID;
        this.m_NameOfMajor = strNameOfMajor;
    }
    
    public MajorDTO(String strMajorID, String strNameOfMajor, String strFacultyId){
        this.m_MajorID = strMajorID;
        this.m_NameOfMajor = strNameOfMajor;
        this.m_FacultyID = strFacultyId;
    }
    
    @Override
    public String toString() {
        return m_NameOfMajor;
    }

    @Override
    public int hashCode() {
        int hash = 5;
        hash = 89 * hash + Objects.hashCode(this.m_MajorID);
        hash = 89 * hash + Objects.hashCode(this.m_NameOfMajor);
        hash = 89 * hash + Objects.hashCode(this.m_FacultyID);
        return hash;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final MajorDTO other = (MajorDTO) obj;
        if (!Objects.equals(this.m_MajorID, other.m_MajorID)) {
            return false;
        }
        if (!Objects.equals(this.m_NameOfMajor, other.m_NameOfMajor)) {
            return false;
        }
        if (!Objects.equals(this.m_FacultyID, other.m_FacultyID)) {
            return false;
        }
        return true;
    }
    //</editor-fold>
}
